<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增路桩车道')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-road_section_lane-add">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">归属路段
                                ：</label>
                            <div class="col-sm-8">
                                <select name="sectionName" class="form-control" id="roadSection"
                                        th:with="type=${roadSectionList}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.sectionName}"
                                            th:value="${dict.sectionName}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">开始路桩
                                ：</label>
                            <div class="col-sm-8">
                                <input name="startPileNumber" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">结束路桩
                                ：</label>
                            <div class="col-sm-8">
                                <input name="endPileNumber" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">车道数量
                                ：</label>
                            <div class="col-sm-8">
                                <input name="laneNumber" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">删除标志
                                ：</label>
                            <div class="col-sm-8">
                                <input name="delFlag" class="form-control" type="text">
                            </div>
                        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "road/road_section_lane"
    $("#form-road_section_lane-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            var data = $('#form-road_section_lane-add').serialize();
            alert(data)
            $.operate.save(prefix + "/add",data );
        }
    }
</script>
</body>
</html>
